package com.example.stock.vo;

import com.example.stock.util.CommUtil;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ScoreVo {

    private String tsCode;

    private double score;

    private double returnRateYearMy;

    private double returnRateYearIndex;

    private double returnRateYearRelative;

    private double returnRateTotalMy;

    private double returnRateTotalIndex;

    private double returnRateTotalRelative;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private double drawdownMe;

    private double drawdownIndex;

    private LocalDateTime drawdownStartTime;

    private LocalDateTime drawdownEndTime;


    public void double3() {
        score = CommUtil.double3(score);
        returnRateYearMy = CommUtil.double3(returnRateYearMy);
        returnRateYearIndex = CommUtil.double3(returnRateYearIndex);
        returnRateYearRelative = CommUtil.double3(returnRateYearRelative);
        drawdownMe = CommUtil.double3(drawdownMe);
        returnRateTotalRelative = CommUtil.double3(returnRateTotalRelative);
    }
}
